<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

class SeoController extends CommonController
{
    //展示软件同步信息
    public function sync_data()
    {
        $tmpDatas = \App\Seo::get()->toArray();
        foreach ($tmpDatas as $k => $data) {
            $tmpDatas[$k]['seo_content_num'] = count(json_decode($data['seo_content'], true));
        }
        $data['datas'] = $tmpDatas;

        return view('admin.seo.sync_data', $data);
    }
}
